package mockup;

/**
 * Holds the login information.
 * 
 * @author Erik
 */

public class LoginMockup extends Mockup {	
	//the user login input
	private String username;
	private String password;
	private UserMockup user;

	public LoginMockup(String username, String password) {
		super(-1);
		this.username = username;
		this.password = password;
	}
	
	public LoginMockup(int sessionID, UserMockup user) {
		super(-1);
		setSessionId(sessionID);
		this.user = user;
	}
	
	public String getUsername() {
		if(username != null)
			return username;
		else
			return "";
	}
	/**
	 * @return Returns the password.
	 */
	public String getPassword() {
		if(password != null)
			return password;
		else
			return "";
	}

	public UserMockup getUser() {
		return user;
	}

	public void setUser(UserMockup user) {
		this.user = user;
	}

}
